package com.ruoyi.loan.service;

import java.util.List;
import com.ruoyi.loan.domain.TbLoan;

/**
 * 贷款申请Service接口
 * 
 * @author jy
 * @date 2023-01-16
 */
public interface ITbLoanService 
{
    /**
     * 查询贷款申请
     * 
     * @param loanId 贷款申请主键
     * @return 贷款申请
     */
    public TbLoan selectTbLoanByLoanId(Long loanId);

    /**
     * 查询贷款申请列表
     * 
     * @param tbLoan 贷款申请
     * @return 贷款申请集合
     */
    public List<TbLoan> selectTbLoanList(TbLoan tbLoan);

    /**
     * 新增贷款申请
     * 
     * @param tbLoan 贷款申请
     * @return 结果
     */
    public int insertTbLoan(TbLoan tbLoan);

    /**
     * 修改贷款申请
     * 
     * @param tbLoan 贷款申请
     * @return 结果
     */
    public int updateTbLoan(TbLoan tbLoan);

    /**
     * 批量删除贷款申请
     * 
     * @param loanIds 需要删除的贷款申请主键集合
     * @return 结果
     */
    public int deleteTbLoanByLoanIds(Long[] loanIds);

    /**
     * 删除贷款申请信息
     * 
     * @param loanId 贷款申请主键
     * @return 结果
     */
    public int deleteTbLoanByLoanId(Long loanId);
}
